package com.eos.control.action.emp;

import java.util.List;

import com.eos.common.tool.DataCacheUtil;
import com.eos.control.action.base.AbstractBaseAction;
import com.eos.orm.mybatis.model.SysRole;

public class AddEmpAction extends AbstractBaseAction {
	private static final long serialVersionUID = 92389678085628438L;
	private List<SysRole> roleList;
	
	public List<SysRole> getRoleList() {
		return roleList;
	}

	@Override
	public String execute() throws Exception {
		 try{
			roleList = DataCacheUtil.getAllSysRole();
	     }catch(Exception ex){
	    	 ex.printStackTrace();
	     }
	     return SUCCESS;
	}
}
